package com.example.demo.service;

import javax.servlet.http.HttpServletRequest;

import com.example.demo.entity.EtUser;
import com.example.demo.util.ResultPage;


public interface UserService {
	

	public int login(String userId,String password,HttpServletRequest req);
	
	public int register(String userId,String userPasswd,String userName,Integer isAdmin,String companyName,String phoneNum);
	
	public ResultPage<EtUser> getUserList(EtUser user);
	
	public EtUser getUserInfo(String userId);
	
	public int updateUser(String userId,String userPasswd,String userName,Integer isAdmin);
	
	public void addUser(EtUser user) throws Exception;
	
	public ResultPage<EtUser> getWebUserList(EtUser user);
	
	public  EtUser getWebUserInfo(String userId);
	
}
